<!-- 加油站详情 -->
<template>
	<view>
		<view class="head">
			<image src="https://tse3-mm.cn.bing.net/th/id/OIP-C.j5P_T-eGR6NiotfMDBzTEAHaE7?rs=1&pid=ImgDetMain"
				alt="" />
			<view class="from">
				<view>
					<view class="name">{{ gasStations.name }}</view>
					<view>营业时间：周一至周五 早上8:00-晚上22:00</view>
					<view>位置: {{ gasStations.address }}</view>
				</view>
				<image src="/static/客服@2x.png"></image>

			</view>
		</view>

		<view class="tail">
			<view class="tailname">
				油价详情
			</view>
			<view class="tailnumber" v-for="(price, type) in oilPrices" :key="type">
				<text class="tailnumber1">{{ type }}</text>
				<text class="tailnumber2">¥{{ price }}/L</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				gasStations: {
					name: '中国石油加油站',
					distance: '556',
					pricePerLiter: 5.66,
					address: '山阳区人民路与解放路交叉口'
					// 注意：满减活动和营业时间在此简化处理，可以根据需要添加  
				},
				oilPrices: {
					'92#': 5.86,
					'95#': 6.86, // 注意：描述中95#后面没有列出价格，这里假设与92#相同  
					'98#': 7.86,
					"0#": 4.45
				}

			}
		},
		methods: {

		}
	}
</script>

<style>
	.head {
		width: 95%;
		background-color: antiquewhite;
		margin-left: 20rpx;
		border: 1px solid #ddd;
		border-radius: 30rpx;


	}

	.head image {
		width: 90%;
		display: flex;
		margin: 0rpx auto;
		margin-top: 40rpx;
	}

	.from {
		margin-top: 30rpx;
		display: flex;
		justify-content: space-between;
		margin-left: 20rpx;
	}
	.name{
		font-size: 40rpx;
		font-weight: bold;
		margin-bottom: 20rpx;
	}
	.from image{
		width: 80rpx;
		height: 80rpx;
		margin: auto;
	}


	.tail {
		width: 95%;
		background-color: antiquewhite;
		margin-left: 20rpx;
		margin-top: 40rpx;
		background-color: aliceblue;
	}

	.tailname {
		font-size: 36rpx;
		margin-left: 20rpx;
		font-weight: bold;
	}

	.tailnumber {
		margin-top: 20rpx;
		display: flex;
		justify-content: space-between;
		line-height: 50rpx;
		
	}

	.tailnumber1 {
		margin-left: 140rpx;
	}

	.tailnumber2 {
		margin-right: 140rpx;
		color: orange;
	}
</style>